﻿
namespace TV_Organizer.TVRage
{
    class Constants
    {
        public const string APIKey = "3hwXsU3yzOEQH50622xI";
        public const string SeasonNode = "Season";
        public const string SeasonNodeNumberAttribute = "no";
        public const string EpisodeNode = "episode";
        public const string EpisodeNumberNode = "seasonnum";
        public const string EpisodeTitleNode = "title";

        public static string GetEpisodeListURL(string showId)
        {
            return string.Format("http://services.tvrage.com/myfeeds/episode_list.php?key={0}&sid={1}", Constants.APIKey, showId);
        }

        public static string GetShowInfoURL(string showId)
        {
            return string.Format("http://services.tvrage.com/myfeeds/showinfo.php?key={0}&sid={1}", Constants.APIKey, showId);
        }

        public static string GetSearchShowURL(string search)
        {
            return string.Format("http://services.tvrage.com/myfeeds/search.php?key={0}&show={1}", Constants.APIKey, search);
        }
    }
}
